<?php
/**
  *基础模型类 mdelelals.sps
  */
class model{
protected $db; //保存数据对象
public function __construct(){
 $this->initDB();//初始化数据库
}
private function initDB(){
     //配置数据库连接信息
     $dbConfig=array('user'=>'root','pass'>='@HWL010124','dbname'=>'hcit_msg');
     //实例化数据库操作类
$this->db=MySQLPDO::getInstance($GLOBALS['config']['db']);
}
}

?>